<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8">
		<title>w1002_windowObject</title>
		<script>
			window.onload=function(){
				var childWin;
				document.getElementById("btn01").onclick=function(){
				//window.open(URL, name, specs, replace)
				childWin = window.open("success.html","n", "width=500 height=350 scrollbars=yes resizable=yes menubar=yes");
				childWin.document.write('<h2>==공지사항==</h2>');
				};
				
				//시계창열기
				document.getElementById("btn02").onclick=function(){
				childWin2 = window.open("w1002.html","n", "width=500 height=350  resizable=yes ");
				};
				
			};
		</script>
	</head>
	<body>
		<button id="btn01">새창열기</button>
		<button id="btn02">시계창열기</button>
	</body>
</html>
